Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix]ON OFF switch in Microsoft Edge #1049 #1066

Merged
merged 3 commits into from
Jul 23, 2018

Conversation

Valcob
Copy link
Contributor

@Valcob Valcob commented Jul 21, 2018

changed the look and feel of the checkboxes to resolve Edge issue + brought disabled state for them
also minor html fixes
ON OFF switch in Microsoft Edge #1049

Copy link
Collaborator

@mcspr mcspr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

About !important... codacy can become happy by replacing other selectors with input:enabled and changing label to div + click proxy.

function createCheckboxes() {

$("input[type='checkbox']").each(function() {

var text_on = $(this).attr("on") || "YES";
var text_off = $(this).attr("off") || "NO";
Copy link
Collaborator

@mcspr mcspr Jul 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relay switch now has NO YES instead of OFF ON, maybe alternative version of this should be used? or check new for attr value in js or css

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry dude, I'm not a huge fan of hacks and workarounds so no div + proxies ). I generally like keeping things as simple as they can be.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well... does it not work only because label does the proxy by itself internally?:)
Relays are ok now. Plus, I should've thought of rules order issue...

$(":checkbox", line).prop('checked', data[i]).attr("data", i)
.prop("id", "relay" + i)
.on("change", function (event) {
console.log("sending message");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover logging?

@xoseperez xoseperez merged commit ae00c4e into xoseperez:dev Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants